home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- #define MAXNUMSTARS 50
- #define MAXNUMENTRIES 50
- #define NUMTOCLEAR 25
- #define VOID int
-
- extern double FindScalingFraction() ;
-
- main() {
- int EntryCount ; /* looping variable -- the current entry number */
- FILE *OutFile ; /* where we're writing information */
- int NumEntries ; /* total number of entries */
- double ScalingMultiplier ; /* the scaling value */
- double Value[MAXNUMENTRIES] ; /* all values the user enters */
-
- if ((OutFile = fopen("histgrm6","w")) == 0) {
- fprintf(stderr, "Can't open output file.\n") ;
- exit(0) ;
- }
- ClearScreen() ;
- printf("How many entries will you make? ") ;
- scanf("%d", &NumEntries) ;
- while (NumEntries > MAXNUMENTRIES || NumEntries < 1) {
- printf("\n\tIcan only accept a number between 1 and %d!\n",
- MAXNUMENTRIES) ;
- printf("\nHow many entries will you make") ;
- scanf("%d", &NumEntries) ;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-